Function |checked_rem

std/ops/num::|checked_rem


Usage

|checked_rem<N>(a, b)

Generics

◻ N: CheckedRem

Parameters

↳ a: N
↳ b: N

Return

↴ Option<N>


Gives remainder of a divided by b, checking if division is possible or if overflow occurs

This function returns an option containing a _mod_ b, or none if division is not possible (as division by 0), or result cause overflow in data type.